package com.daotingli.backendprograms.Service.Register;

import com.daotingli.backendprograms.Repository.Register.RegisterRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

import java.util.Map;
@Component
public class RegisterService {
    @Autowired
    private RegisterRepository registerRepository;
    public Map register(String username, String password, String identity ,String userphone) {
    return registerRepository.register(username,password,identity,userphone);
    }
}
